package com.example.idachuappone.index.welcomentity;

import org.json.JSONObject;

public class Awards {
    private Alipay alipay;
    private Comment comment;
    private Friend friend;
    private Weixin weixin;

    public void parseJson(JSONObject json) {
        if (json != null) {
            if (json.has("comment")) {
                this.comment = new Comment();
                this.comment = this.comment.parseJson(json.optJSONObject("comment"));
            }
            if (json.has("friend")) {
                this.friend = new Friend();
                this.friend = this.friend.parseJson(json.optJSONObject("friend"));
            }
            if (json.has("weixin")) {
                this.weixin = new Weixin();
                this.weixin = this.weixin.parseJson(json.optJSONObject("weixin"));
            }
            if (json.has("alipay")) {
                this.alipay = new Alipay();
                this.alipay = this.alipay.parseJson(json.optJSONObject("alipay"));
            }
        }
    }

    public Comment getComment() {
        return this.comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public Friend getFriend() {
        return this.friend;
    }

    public void setFriend(Friend friend) {
        this.friend = friend;
    }

    public Weixin getWeixin() {
        return this.weixin;
    }

    public void setWeixin(Weixin weixin) {
        this.weixin = weixin;
    }

    public Alipay getAlipay() {
        return this.alipay;
    }

    public void setAlipay(Alipay alipay) {
        this.alipay = alipay;
    }
}
